import {
	myRequest
} from '@/utils/api.js'

export const getPage = (query) => myRequest({
	url: '/mall/goodsspu/page',
	method: 'get',
	data: query,
	showLoading: true
});

export const getObj = (id) => myRequest({
	url: '/mall/goodsspu/' + id,
	method: 'get',
	showLoading: true
});

export const delObj = (id) => myRequest({
	url: '/mall/goodsspu/' + id,
	method: 'delete',
	showLoading: true
});

export const updateStatus = (data) => myRequest({
	url: '/mall/goodsspu/update/status',
	method: 'post',
	data: data,
	showLoading: true
});
